import request from '@/utils/request'
export default {
  //查询产品信息
  getAllProduct(page) {
    return request({
      url: "/seckill/product/getProduct/"+page,
      method: 'get',
    })
  },

  getProductById(id) {
    return request({
      url: "/seckill/product/getProductDetail/"+id,
      method: 'get',
    })
  },

  getOrderId(id){
    return request({
      url: "/seckill/order/placeOrder",
      method: 'post',
      data:{
        "id": id
      }
    })
  }

  
}